#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2018/12/17 22:24
# @Author  : lizhen
# @Site    : 
# @File    : Hello.py
# @Software: PyCharm
import tornado.ioloop
import tornado.web


class HelloDemo(tornado.web.RequestHandler):
    def get(self):
        self.write("Hello, world")


def _test_hello():
    """
    _test_hello()
    >
    192.168.1.100:8000
    """
    app = tornado.web.Application([
        (r"/", HelloDemo),
    ])
    app.listen(port=8000, address="0.0.0.0")
    tornado.ioloop.IOLoop.current().start()


if __name__ == "__main__":
    _test_hello()
